<?php
require "common.php";
if ($_POST) {
    $title = $_POST['title'];
    $content = $_POST['content'];
    $time = time();
    $res = mysql_query("insert into `article` (`title`,`content`,`time`)VALUES ('$title','$content','$time')");
    success("添加成功","index.php");
}

require "templates/add.html";